# -*- coding: utf-8 -*-

###################
#   miniTH
#   This program serves for serial change of photos size, to put watermarks
#   and at the same time for making thumbnails.
#   It can be useful for quick processing of big amount of pictures in order to put
#   them in web galleries or on websites.
#   Copyright (C) 2011 DooBLER
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
###################

###################
# svn: $Id: uimainwindow.py 20 2011-08-15 17:40:39Z MrDooBLER@gmail.com $
# Author: DooBLER http://doobler.net
###################

from PySide import QtCore, QtGui
from ui.mainwindow import Ui_MainWindow

from minith.widgets.My9BtnWidget import My9BtnWidget

class MyUi_MainWindow(Ui_MainWindow):
    def setupUi(self, parent):
        super(MyUi_MainWindow, self).setupUi(parent)

        
        # image tab - alignment
        self.obrUklButtons = My9BtnWidget(self.obrUklGroupBox)
        self.verticalLayout_14.addWidget(self.obrUklButtons)

        # thumbnail tab - alignment
        self.minUklButtons = My9BtnWidget(self.minUklGroupBox)
        self.verticalLayout_27.addWidget(self.minUklButtons)

        # watermark - alignment
        self.wmButtons = My9BtnWidget(self.tab_5)
        self.verticalLayout_17.addWidget(self.wmButtons)


        # fit in window button
        self.zoomFitBtn.setText('')
        self.zoomFitBtn.setIcon(QtGui.QIcon("gfx/resize_picture.png"))

        #statusBar
        self.progressBar = QtGui.QProgressBar()
        self.progressBar.setEnabled(True)
        self.progressBar.setMaximum(100)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setFixedSize(200, 20)
        self.statusBar.addPermanentWidget(self.progressBar)